<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return 1;
    return view('welcome');
});
Route::get('/home/hello','HomeController@hello');
Route::get('/home/dbTest','HomeController@dbTest');
Route::get('/home/modelTest','HomeController@modelTest');
Route::get('/home/cacheTest','HomeController@cacheTest');
Route::get('/mq/index','MqController@index');

Route::get('here',function (){
   return 'here';
});
Route::get('there',function (){
   return 'there';
});
#Route::redirect('here','there');//302
#Route::redirect('here','there',301);//301
Route::permanentRedirect('here','there');//也是301

Route::get('/testtest/{id}',function ($id) {
   return $id;
});
Route::get('/test1','Test\TestController@index');
Route::get('/getOrder','OrderController@getOrder');
Route::get('/testcon/conllection','Test\TestController@conllection');
Route::get('/testcon/cache','Test\TestController@cache');
Route::get('/testcon/facade','Test\TestController@facade');

